#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
const int maxn = 1e6+10;
int a[maxn];
int main()
{
	int n,s;
	scanf("%d %d",&n,&s);
	a[0] = s-n+1;
	for(int i = 1;i<n;i++)
	{
		a[i] = 1;
	}
	int k = n;
	if(a[0]<=k) 
	{
		printf("NO\n");
	}
	else
	{
		printf("YES\n");
		for(int i = 0;i<n;i++)
		{
			if(i==0) printf("%d",a[i]);
			else printf(" %d",a[i]);
		}
		printf("\n%d\n",k);
	}
} 
